//
//  ZSSettingList.m
//  ZhuShou
//
//  Created by Dejun Liu on 15/10/28.
//  Copyright © 2015年 jw. All rights reserved.
//

#import "ZSSetting.h"

@implementation ZSSetting

- (instancetype)initWithTitle:(NSString *)title
                         icon:(NSString *)icon
                         type:(ZSSettingType) type
{
    self = [super init];
    if (self) {
        self.title = title;
        self.iconName = icon;
        self.type = type;
    }
    return self;
}

+ (NSMutableArray *) df_list
{
    NSMutableArray *array = [NSMutableArray array];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"主机管理" icon:@"user" type:ZSSettingTypeHost]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"场景管理" icon:@"user" type:ZSSettingTypeScene]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"环境管理" icon:@"user" type:ZSSettingTypeENV]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"设备管理" icon:@"user" type:ZSSettingTypeDevice]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"布防撤防" icon:@"user" type:ZSSettingTypeDefense]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"联动管理" icon:@"user" type:ZSSettingTypeUnite]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"对码管理" icon:@"user" type:ZSSettingTypeCode]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"定时设置" icon:@"user" type:ZSSettingTypeTiming]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"检查更新" icon:@"user" type:ZSSettingTypeUpdate]];
    [array addObject:[[ZSSetting alloc] initWithTitle:@"帮助与反馈" icon:@"user" type:ZSSettingTypeHelp]];
    return array;
}

@end
